package com.milk.milkmedia.bean;

import java.util.List;

/**
 * Created by 微安 on 2015/7/28.
 */
public class MusicList {
    private List<MusicInfo> iMusicInfos;
    private int totalCount;

    public List<MusicInfo> getiMusicInfos() {
        return iMusicInfos;
    }

    public void setiMusicInfos(List<MusicInfo> iMusicInfos) {
        this.iMusicInfos = iMusicInfos;
    }

    public int getTotalCount() {
        if (iMusicInfos.size()>0&&iMusicInfos!=null)
        {
            return iMusicInfos.size();
        }
        else
        {
            return 0;
        }
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public void addMusicInfo(MusicInfo musicInfo){
        if (musicInfo != null) {
            iMusicInfos.add(musicInfo);
        }
    }
}
